
import { _decorator, Component, Node } from 'cc';
import { resourcesMgr } from '../../framework/loader/ResourcesMgr';
import { UIBaseTest } from './UIBaseTest';
const { ccclass, property } = _decorator;
import * as cc from "cc";
/**
 * Predefined variables
 * Name = UIWindowBaseTest
 * DateTime = Sun Mar 20 2022 20:53:53 GMT+0800 (中国标准时间)
 * Author = 272493431
 * FileBasename = UIWindowBaseTest.ts
 * FileBasenameNoExtension = UIWindowBaseTest
 * URL = db://assets/scripts/scene/Test/UIWindowBaseTest.ts
 * ManualUrl = https://docs.cocos.com/creator/3.4/manual/zh/
 *
 */
 
@ccclass('UIWindowBaseTest')
export class UIWindowBaseTest extends UIBaseTest {
 
    
    onCtor(path: string): void {

        resourcesMgr.load("window",path,cc.Prefab,(err,prefab)=>{
            if(err){
                return;
            }
            let node: cc.Node = cc.instantiate(prefab);
            node.parent = cc.find("Canvas");
            super.onCtor(node);
        });
    }
}
